package Demo;

import java.io.File;
import java.util.Arrays;
import java.util.Scanner;

public class Demo06 {
    public static void main(String[] args) {
        //File file = new File("./新建 文本文档.txt");
        //File file = new File("./test");
//        System.out.println(Arrays.toString(file.list()));
//        System.out.println(Arrays.toString(file.listFiles()));

        //System.out.println(file.mkdir());

//        File file = new File("./test1/test2");
//        System.out.println(file.mkdirs());

        File file = new File("./test");
        File file1 = new File("./test1");

        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入任意内容删除文件或目录");
        scanner.nextLine();

        file.deleteOnExit();
        file1.deleteOnExit();
    }
}
